<?
	include('chksession.php');
		include('conn.php');
	session_start();
   
	  $prefx = $_REQUEST['prefx'];
	  $name = $_REQUEST['name'];
      $address = $_REQUEST['address'];
	  $city = $_REQUEST['city'];
	  $email = $_REQUEST['email'];
	  $phoneno = $_REQUEST['phoneno'];
	  $custid = $_REQUEST['custid'];
	  $custtype = $_REQUEST['custtype'];
	   $enteredby=$_SESSION['username'];
	   
		$sql="update customermast set custdesc='".strtoupper($name)."',custtype='".strtoupper($custtype)."',address='".strtoupper($address)."',city='".strtoupper($city)."',email='".$email."',phoneno='".strtoupper($phoneno)."',prefx='".$prefx."',enteredby='".strtoupper($enteredby)."',entrydt=sysdate()	where status=0 and custid=".$custid;
		
		$res=mysql_query($sql);
		if($res)
		$msg='Record updated successfully...';					

?>